from shapes import*

world = TurtleWorld()
bob = Turtle()

def showMenu():
    print "1 Square"
    print "2 Rectangle"
    print "3 Arc"
    print "4 Star"
    print "5 Exit"
    print
    answer = raw_input("please choose a number: ")
    return answer


def drawShapes(t, option):
    if option == "1":
        size = raw_input("how large? ")
        size = float(size)
        square(t, size)
    elif option == "2":
        length = input("how long? ")
        height = input("how long? ")
        rect(t, length, height)
    elif option == "3":
        radius = input("how big of a radius")
        angle = input("what angle")
        d = t.delay
        t.delay = 0
        arc(t, radius, angle)
        t.delay = d
    else:
        print "what have you done"
       
def run():
    while True:
        opt = showMenu()
        if opt == "5":
            wait_for_user()
            exit()
        drawShapes(bob, opt)
run() 